// cover some element-ui styles

.el-drawer {
  min-height: 50% !important;
  overflow: auto !important;
}

.el-dialog__body {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100% !important;
    }
  }

  .el-date-editor, .el-input-number, .el-input__inner {
    width: 100% !important;
  }

  .el-select {
    width: 100% !important;
  }

  .el-cascader {
    width: 100% !important;
  }

  .el-input-number .el-input__inner {
    text-align: left !important;
  }

  .el-radio {
    margin-right: 10px;
  }

  .el-tree-node__content {
    .el-tree-node__label {
      margin-left: 5px;
    }
  }
}

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0;
    }
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

.chartDialog {
  .el-dialog {
    width: 70vw !important;
    border-radius: 5px;

    .el-dialog__body {
      height: 80vh !important;
      padding: 0;
    }
  }

  .el-radio-group {
    margin: 0 auto 20px auto !important;
  }
}

.multiAddOrUpdateDialog, .addOrUpdateDialog {
  .el-steps {
    margin-bottom: 20px;
  }

  .stepButtonContainer {
    position: relative;
    height: 50px;
    width: 100%;
    margin-top: 20px;
  }

  .lastStepBtn, .nextStepBtn, .finishStepBtn {
    position: absolute;
    bottom: 0;
  }

  .lastStepBtn {
    left: 20px;
  }

  .nextStepBtn, .finishStepBtn {
    position: absolute !important;
    right: 0;
  }

  .el-dialog {
    padding-right: 20px;
  }
}

.addOrUpdateDialog {
  .el-dialog {
    //width: 560px !important;
  }
}

.multiAddOrUpdateDialog {
  .el-dialog {
    width: 100% !important;
  }

  .el-form-item {
    .el-form-item__content {
      width: 60%;
    }
  }
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}
.el-tag .el-tag--special {
  background-color: rgba(96, 8, 164, 0.1);border-color: rgba(73, 8, 164, 0.2);color:#7232dd
}
